<?php
/*
Description: This file is used to change login paassword.
*/
#########IncludeFiles####################################################################################
include_once '../inc/config.php';
include_once("../inc/bootstrape.php");
require_once _SITE_PATH_.'classes/UsersMaster/UsersMaster.php';

//	END CHANGE PASSWORD CODE	//
$errMsg = $_GET['err'];
$action = trim($_REQUEST['action']);
$id = trim($_REQUEST['id']);
switch($action){
	case 'active':
		$row = UsersMaster::userStatusUpdate($id,1);
	     $errMsg = "useractive" ;
	break;
	case 'deactive':
		$row = UsersMaster::userStatusUpdate($id,0);
		$errMsg = "userdeactive" ;
	break;
	case 'delete':
		$row = UsersMaster::userDelete($id);
		$errMsg = "userdelete" ;
	break;
}
$row = UsersMaster::getUsersDetail();
$_tplName = 'users/users_mng.tpl';
$_title = 'Users Management';
require_once _ADMIN_TPL_MAIN_;
?>